.class public Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
.super Ljava/lang/Object;
.source "ZMDownloadManager.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/zuimeia/sdk/download/providers/ZMDownloadManager;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "Request"
.end annotation


# static fields
.field static final synthetic $assertionsDisabled:Z

.field public static final NETWORK_MOBILE:I = 0x1

.field public static final NETWORK_WIFI:I = 0x2


# instance fields
.field private mAllowedNetworkTypes:I

.field private mCountryName:Ljava/lang/CharSequence;

.field private mDescription:Ljava/lang/CharSequence;

.field private mDestinationUri:Landroid/net/Uri;

.field private mIsNeedPostData:Ljava/lang/String;

.field private mIsVisibleInDownloadsUi:Z

.field private mMimeType:Ljava/lang/String;

.field private mNotiClass:Ljava/lang/CharSequence;

.field private mNotiExtra:Ljava/lang/CharSequence;

.field private mOtherKey:Ljava/lang/String;

.field private mPrimaryKey:Ljava/lang/String;

.field private mRequestHeaders:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/util/Pair",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;>;"
        }
    .end annotation
.end field

.field private mRoamingAllowed:Z

.field private mShowNotification:Z

.field private mTitle:Ljava/lang/CharSequence;

.field private mUri:Landroid/net/Uri;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 321
    const-class v0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    if-nez v0, :cond_c

    const/4 v0, 0x1

    :goto_9
    sput-boolean v0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->$assertionsDisabled:Z

    return-void

    :cond_c
    const/4 v0, 0x0

    goto :goto_9
.end method

.method public constructor <init>(Landroid/net/Uri;)V
    .registers 6
    .param p1, "uri"    # Landroid/net/Uri;

    .prologue
    const/4 v2, 0x1

    .line 366
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 338
    const-string v1, ""

    iput-object v1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mPrimaryKey:Ljava/lang/String;

    .line 339
    const-string v1, ""

    iput-object v1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mOtherKey:Ljava/lang/String;

    .line 340
    const-string v1, "false"

    iput-object v1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mIsNeedPostData:Ljava/lang/String;

    .line 342
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mRequestHeaders:Ljava/util/List;

    .line 346
    iput-boolean v2, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mShowNotification:Z

    .line 348
    iput-boolean v2, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mRoamingAllowed:Z

    .line 349
    const/4 v1, -0x1

    iput v1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mAllowedNetworkTypes:I

    .line 351
    iput-boolean v2, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mIsVisibleInDownloadsUi:Z

    .line 367
    if-nez p1, :cond_28

    .line 368
    new-instance v1, Ljava/lang/NullPointerException;

    invoke-direct {v1}, Ljava/lang/NullPointerException;-><init>()V

    throw v1

    .line 370
    :cond_28
    invoke-virtual {p1}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v0

    .line 371
    .local v0, "scheme":Ljava/lang/String;
    if-eqz v0, :cond_36

    const-string v1, "http"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_4f

    .line 372
    :cond_36
    new-instance v1, Ljava/lang/IllegalArgumentException;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Can only download HTTP URIs: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v1

    .line 374
    :cond_4f
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mUri:Landroid/net/Uri;

    .line 375
    return-void
.end method

.method static synthetic access$000(Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;)Landroid/net/Uri;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;

    .prologue
    .line 321
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mUri:Landroid/net/Uri;

    return-object v0
.end method

.method private encodeHttpHeaders(Landroid/content/ContentValues;)V
    .registers 8
    .param p1, "values"    # Landroid/content/ContentValues;

    .prologue
    .line 625
    const/4 v2, 0x0

    .line 626
    .local v2, "index":I
    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mRequestHeaders:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_7
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_4b

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/util/Pair;

    .line 627
    .local v0, "header":Landroid/util/Pair;, "Landroid/util/Pair<Ljava/lang/String;Ljava/lang/String;>;"
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, v0, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v5, ": "

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v3, v0, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 628
    .local v1, "headerString":Ljava/lang/String;
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "http_header_"

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1, v3, v1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 629
    add-int/lit8 v2, v2, 0x1

    .line 630
    goto :goto_7

    .line 631
    .end local v0    # "header":Landroid/util/Pair;, "Landroid/util/Pair<Ljava/lang/String;Ljava/lang/String;>;"
    .end local v1    # "headerString":Ljava/lang/String;
    :cond_4b
    return-void
.end method

.method private putIfNonNull(Landroid/content/ContentValues;Ljava/lang/String;Ljava/lang/Object;)V
    .registers 5
    .param p1, "contentValues"    # Landroid/content/ContentValues;
    .param p2, "key"    # Ljava/lang/String;
    .param p3, "value"    # Ljava/lang/Object;

    .prologue
    .line 634
    if-eqz p3, :cond_9

    .line 635
    invoke-virtual {p3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, p2, v0}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 637
    :cond_9
    return-void
.end method

.method private setDestinationFromBase(Ljava/io/File;Ljava/lang/String;)V
    .registers 5
    .param p1, "base"    # Ljava/io/File;
    .param p2, "subPath"    # Ljava/lang/String;

    .prologue
    .line 448
    if-nez p2, :cond_a

    .line 449
    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "subPath cannot be null"

    invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 451
    :cond_a
    invoke-static {p1}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v0

    invoke-static {v0, p2}, Landroid/net/Uri;->withAppendedPath(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    iput-object v0, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mDestinationUri:Landroid/net/Uri;

    .line 452
    return-void
.end method


# virtual methods
.method public addRequestHeader(Ljava/lang/String;Ljava/lang/String;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 5
    .param p1, "header"    # Ljava/lang/String;
    .param p2, "value"    # Ljava/lang/String;

    .prologue
    .line 466
    if-nez p1, :cond_a

    .line 467
    new-instance v0, Ljava/lang/NullPointerException;

    const-string v1, "header cannot be null"

    invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 469
    :cond_a
    const-string v0, ":"

    invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1a

    .line 470
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "header may not contain \':\'"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 472
    :cond_1a
    if-nez p2, :cond_1e

    .line 473
    const-string p2, ""

    .line 475
    :cond_1e
    iget-object v0, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mRequestHeaders:Ljava/util/List;

    invoke-static {p1, p2}, Landroid/util/Pair;->create(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 476
    return-object p0
.end method

.method public setAllowedNetworkTypes(I)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "flags"    # I

    .prologue
    .line 543
    iput p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mAllowedNetworkTypes:I

    .line 544
    return-object p0
.end method

.method public setAllowedOverRoaming(Z)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "allowed"    # Z

    .prologue
    .line 555
    iput-boolean p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mRoamingAllowed:Z

    .line 556
    return-object p0
.end method

.method public setCountryName(Ljava/lang/CharSequence;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "countryName"    # Ljava/lang/CharSequence;

    .prologue
    .line 572
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mCountryName:Ljava/lang/CharSequence;

    .line 573
    return-object p0
.end method

.method public setDescription(Ljava/lang/CharSequence;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "description"    # Ljava/lang/CharSequence;

    .prologue
    .line 498
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mDescription:Ljava/lang/CharSequence;

    .line 499
    return-object p0
.end method

.method public setDestinationInExternalFilesDir(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "dirType"    # Ljava/lang/String;
    .param p3, "subPath"    # Ljava/lang/String;

    .prologue
    .line 426
    invoke-virtual {p1, p2}, Landroid/content/Context;->getExternalFilesDir(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    invoke-direct {p0, v0, p3}, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->setDestinationFromBase(Ljava/io/File;Ljava/lang/String;)V

    .line 427
    return-object p0
.end method

.method public setDestinationInExternalPublicDir(Ljava/lang/String;Ljava/lang/String;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 4
    .param p1, "dirType"    # Ljava/lang/String;
    .param p2, "subPath"    # Ljava/lang/String;

    .prologue
    .line 443
    invoke-static {p1}, Landroid/os/Environment;->getExternalStoragePublicDirectory(Ljava/lang/String;)Ljava/io/File;

    move-result-object v0

    invoke-direct {p0, v0, p2}, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->setDestinationFromBase(Ljava/io/File;Ljava/lang/String;)V

    .line 444
    return-object p0
.end method

.method public setDestinationUri(Landroid/net/Uri;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "uri"    # Landroid/net/Uri;

    .prologue
    .line 388
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mDestinationUri:Landroid/net/Uri;

    .line 389
    return-object p0
.end method

.method public setIsPostData(Z)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 3
    .param p1, "isNeedPostData"    # Z

    .prologue
    .line 403
    if-eqz p1, :cond_7

    .line 404
    const-string v0, "true"

    iput-object v0, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mIsNeedPostData:Ljava/lang/String;

    .line 408
    :goto_6
    return-object p0

    .line 406
    :cond_7
    const-string v0, "false"

    iput-object v0, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mIsNeedPostData:Ljava/lang/String;

    goto :goto_6
.end method

.method public setMimeType(Ljava/lang/String;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "mimeType"    # Ljava/lang/String;

    .prologue
    .line 512
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mMimeType:Ljava/lang/String;

    .line 513
    return-object p0
.end method

.method public setNotiClass(Ljava/lang/CharSequence;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "notiClass"    # Ljava/lang/CharSequence;

    .prologue
    .line 354
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mNotiClass:Ljava/lang/CharSequence;

    .line 355
    return-object p0
.end method

.method public setNotiExtra(Ljava/lang/CharSequence;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "notiExtra"    # Ljava/lang/CharSequence;

    .prologue
    .line 359
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mNotiExtra:Ljava/lang/CharSequence;

    .line 360
    return-object p0
.end method

.method public setOtherKey(Ljava/util/Map;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)",
            "Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;"
        }
    .end annotation

    .prologue
    .line 398
    .local p1, "map":Ljava/util/Map;, "Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    invoke-static {p1}, Lcom/zuiapps/sdk/analytics/util/ZMJsonMapUtil;->toJson(Ljava/util/Map;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mOtherKey:Ljava/lang/String;

    .line 399
    return-object p0
.end method

.method public setPrimaryKey(Ljava/lang/String;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "primaryKey"    # Ljava/lang/String;

    .prologue
    .line 393
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mPrimaryKey:Ljava/lang/String;

    .line 394
    return-object p0
.end method

.method public setShowRunningNotification(Z)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "show"    # Z

    .prologue
    .line 531
    iput-boolean p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mShowNotification:Z

    .line 532
    return-object p0
.end method

.method public setTitle(Ljava/lang/CharSequence;)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "title"    # Ljava/lang/CharSequence;

    .prologue
    .line 487
    iput-object p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mTitle:Ljava/lang/CharSequence;

    .line 488
    return-object p0
.end method

.method public setVisibleInDownloadsUi(Z)Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;
    .registers 2
    .param p1, "isVisible"    # Z

    .prologue
    .line 567
    iput-boolean p1, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mIsVisibleInDownloadsUi:Z

    .line 568
    return-object p0
.end method

.method toContentValues(Ljava/lang/String;)Landroid/content/ContentValues;
    .registers 7
    .param p1, "packageName"    # Ljava/lang/String;

    .prologue
    const/4 v4, 0x1

    const/4 v1, 0x0

    .line 580
    new-instance v0, Landroid/content/ContentValues;

    invoke-direct {v0}, Landroid/content/ContentValues;-><init>()V

    .line 581
    .local v0, "values":Landroid/content/ContentValues;
    sget-boolean v2, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->$assertionsDisabled:Z

    if-nez v2, :cond_15

    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mUri:Landroid/net/Uri;

    if-nez v2, :cond_15

    new-instance v1, Ljava/lang/AssertionError;

    invoke-direct {v1}, Ljava/lang/AssertionError;-><init>()V

    throw v1

    .line 582
    :cond_15
    const-string v2, "uri"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mUri:Landroid/net/Uri;

    invoke-virtual {v3}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 583
    const-string v2, "is_public_api"

    invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Boolean;)V

    .line 584
    const-string v2, "primary_key"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mPrimaryKey:Ljava/lang/String;

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 585
    const-string v2, "download_url"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mUri:Landroid/net/Uri;

    invoke-virtual {v3}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 586
    const-string v2, "other_key"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mOtherKey:Ljava/lang/String;

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 587
    const-string v2, "apk_package_name"

    const-string v3, ""

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 588
    const-string v2, "is_need_post_data"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mIsNeedPostData:Ljava/lang/String;

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 590
    const-string v2, "notificationpackage"

    invoke-virtual {v0, v2, p1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 592
    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mDestinationUri:Landroid/net/Uri;

    if-eqz v2, :cond_db

    .line 593
    const-string v2, "destination"

    const/4 v3, 0x4

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 594
    const-string v2, "hint"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mDestinationUri:Landroid/net/Uri;

    invoke-virtual {v3}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

    .line 599
    :goto_6e
    iget-object v2, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mRequestHeaders:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->isEmpty()Z

    move-result v2

    if-nez v2, :cond_79

    .line 600
    invoke-direct {p0, v0}, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->encodeHttpHeaders(Landroid/content/ContentValues;)V

    .line 604
    :cond_79
    const-string v2, "notificationclass"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mNotiClass:Ljava/lang/CharSequence;

    invoke-direct {p0, v0, v2, v3}, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->putIfNonNull(Landroid/content/ContentValues;Ljava/lang/String;Ljava/lang/Object;)V

    .line 605
    const-string v2, "notificationextras"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mNotiExtra:Ljava/lang/CharSequence;

    invoke-direct {p0, v0, v2, v3}, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->putIfNonNull(Landroid/content/ContentValues;Ljava/lang/String;Ljava/lang/Object;)V

    .line 606
    const-string v2, "country_name"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mCountryName:Ljava/lang/CharSequence;

    invoke-direct {p0, v0, v2, v3}, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->putIfNonNull(Landroid/content/ContentValues;Ljava/lang/String;Ljava/lang/Object;)V

    .line 609
    const-string v2, "title"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mTitle:Ljava/lang/CharSequence;

    invoke-direct {p0, v0, v2, v3}, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->putIfNonNull(Landroid/content/ContentValues;Ljava/lang/String;Ljava/lang/Object;)V

    .line 610
    const-string v2, "description"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mDescription:Ljava/lang/CharSequence;

    invoke-direct {p0, v0, v2, v3}, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->putIfNonNull(Landroid/content/ContentValues;Ljava/lang/String;Ljava/lang/Object;)V

    .line 611
    const-string v2, "mimetype"

    iget-object v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mMimeType:Ljava/lang/String;

    invoke-direct {p0, v0, v2, v3}, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->putIfNonNull(Landroid/content/ContentValues;Ljava/lang/String;Ljava/lang/Object;)V

    .line 613
    const-string v2, "visibility"

    iget-boolean v3, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mShowNotification:Z

    if-eqz v3, :cond_e5

    :goto_a9
    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 615
    const-string v1, "allowed_network_types"

    iget v2, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mAllowedNetworkTypes:I

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 616
    const-string v1, "allow_roaming"

    iget-boolean v2, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mRoamingAllowed:Z

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Boolean;)V

    .line 617
    const-string v1, "is_visible_in_downloads_ui"

    iget-boolean v2, p0, Lcom/zuimeia/sdk/download/providers/ZMDownloadManager$Request;->mIsVisibleInDownloadsUi:Z

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Boolean;)V

    .line 619
    const-string v1, "no_integrity"

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    .line 621
    return-object v0

    .line 596
    :cond_db
    const-string v2, "destination"

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

    goto :goto_6e

    .line 613
    :cond_e5
    const/4 v1, 0x2

    goto :goto_a9
.end method
